package com.canis.stockmanager.domai.result;


import java.util.List;

public class ResponseData extends Response{
    private Object data;

    public long getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(long totalSize) {
        this.totalSize = totalSize;
    }

    public List getList() {
        return list;
    }

    public void setList(List list) {
        this.list = list;
    }

    private long totalSize=0;

    public String getSUCCESS() {
        return SUCCESS;
    }

    public void setSUCCESS(String SUCCESS) {
        this.SUCCESS = SUCCESS;
    }

    private String SUCCESS="success";
    private List list;
    public ResponseData(Object data) {
        this.data = data;
    }

    public ResponseData(ExceptionMsg msg) {
        super(msg);
    }

    public ResponseData(String rspCode, String rspMsg) {
        super(rspCode, rspMsg);
    }

    public ResponseData(String rspCode, String rspMsg, Object data) {
        super(rspCode, rspMsg);
        this.data = data;
    }

    public ResponseData(ExceptionMsg msg, Object data) {
        super(msg);
        this.data = data;
    }
    public ResponseData(ExceptionMsg msg, Object data,long totalSize,List list) {
        super(msg);
        this.data = data;
        this.totalSize=totalSize;
        this.list=list;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        System.out.println("111------------>"+super.toString());
        return "ResponseData{" +
                "data=" + data +
                "} " + super.toString();
    }
}
